package com.chen.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.MenuDto;
import com.chen.authority.model.po.MenuPo;
import com.chen.authority.model.qo.MenuQo;
import com.chen.authority.model.vo.MenuVo;
import com.chen.authority.model.vo.RouterVo;

import java.util.List;

/**
 * 菜单权限Service接口
 *
 * @author chengy
 * @date 2022-08-19
 */
public interface MenuService extends IService<MenuPo> {

    Response addOrUpdateMenu(Integer id, MenuDto dto);

    Response deleteMenuById(Integer id);

    List<String> findMenuPermissionsByUserId(Object userId);

    List<MenuVo> findMenusByCondition(MenuQo qo);

    List<RouterVo> findRoutersByLoginUser();

}
